package com.yima.baseproj.module.app.gentable.column.model;

import com.yima.baseproj.module.config.model.BaseEnum;

import java.io.Serializable;

public enum AppGenTableColumnQueryTypeEnum implements BaseEnum {

    EQ("等于",""),
    NE("不等于","不等于该值"),
    GT("大于","大于该值"),
    GTE("大于等于","大于等于该值"),
    LT("小于","小于该值"),
    LTE("小于等于","小于等于该值"),
    LIKE("模糊查询",""),
    BETWEEN("区间","");

    private String remark;
    private String placeholder;
    AppGenTableColumnQueryTypeEnum(String remark,String placeholder) {
        this.remark = remark;
        this.placeholder = placeholder;
    }

    public String getRemark() {
        return remark;
    }

    public String getPlaceholder() {
        return placeholder;
    }

    @Override
    public Serializable getName() {
        return name();
    }

    /**
     * 是否相同
     * @param name
     * @return
     */
    public boolean isSame(String name){
        return name().equals(name);
    }
}
